package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.DynamicEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 动态详情记录dao层接口
 * @author lzf
 * @date 2022/4/14 14:08
 */
@Repository
@Mapper
public interface DynamicDao {

    void insertList(List<DynamicEntity> dynamicEntityList);

    List<DynamicEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer insert(DynamicEntity dynamicEntity);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    Integer update(DynamicEntity entity);

    void updateData(@Param("param") Map<String, Object> params);
}
